#pragma once
#include "game_math.h"

struct V2;
struct V2i;

struct Position
{
	V2 world;
	V2 relative;	
	V2i chunk_index;			
};

V2 position_get_screen_pos(Position p, V2 camera_pos);

Position _position_set_world(V2 world_point,Position & self);

//value is either position or chunk_index
//re factor this... bad code?
Position position_set(V2 screen_pos, Position & in_out_pos, V2 camera_pos);
Position position_set(V2 world_pos, Position & self);
Position position_set(V2i chunk_id, V2 rel_pos, Position & self);
bool _position_on_screen(const Position & p);